
import pickle

userInfo = {'111': ['123', '15000', '15000'],
            '222': ['456', '8000', '8000'],
            '333': ['789', '3000', '3000']
            }

pickle.dump(userInfo, open("userinfo", "w"))

userinfo = open("userinfo", "r")
while True:
    try:
        line = pickle.load(userinfo)
    except:
        break
